package com.feihong.txgw.tx_model;

import com.feihong.txgw.inter.contract.setting.ISettingContract;
import com.feihong.txgw.utils.helper.RxHelper;
import com.feihong.txgw.utils.manage.RetrofitManager;

import java.util.HashMap;

import io.reactivex.Observable;

/**
 * @Author wangziheng
 * @ProjectName txgw_app
 * @ClassName SettingMainModel
 * @package com.feihong.txgw.tx_model
 * @data 2018/5/7 16:19
 * @Describe
 * @Change
 */
public class SettingMainModel implements ISettingContract.ISettingMainModel {
    public static SettingMainModel create(){
        return new SettingMainModel();
    }
    @Override
    public Observable<String> logout() {
        return RetrofitManager.getInstance().logOut(new HashMap<String, String>()).compose(RxHelper.<String>rxSchedulerHelper());
    }
}
